package com.platform;

import com.platform.system.mqtt.utils.BootNettyMqttServerThread;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 启动程序
 * @author Huangkai
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class YuliangPlatformpApplication implements CommandLineRunner {
    public static void main(String[] args) {
        SpringApplication.run(YuliangPlatformpApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉ  鱼亮云管平台管理系统 ");
    }

    @Override
    public void run(String... args) {
        // 启动  1883
        int port = 1883;
        BootNettyMqttServerThread bootNettyMqttServerThread = new BootNettyMqttServerThread(port);
        bootNettyMqttServerThread.start();
    }
}
